package com.hjm.project.ActActivationReturn.ActActivationReturn.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.ActActivationReturn.ActActivationReturn.mapper.ActActivationReturnMapper;
import com.hjm.project.ActActivationReturn.ActActivationReturn.domain.ActActivationReturn;
import com.hjm.project.ActActivationReturn.ActActivationReturn.service.IActActivationReturnService;
import com.hjm.common.utils.text.Convert;

/**
 * 激活返现Service业务层处理
 * 
 * @author ActActivationReturn
 * @date 2020-11-29
 */
@Service
public class ActActivationReturnServiceImpl implements IActActivationReturnService 
{
    @Autowired
    private ActActivationReturnMapper actActivationReturnMapper;

    /**
     * 查询激活返现
     * 
     * @param id 激活返现ID
     * @return 激活返现
     */
    @Override
    public ActActivationReturn selectActActivationReturnById(Long id)
    {
        return actActivationReturnMapper.selectActActivationReturnById(id);
    }

    /**
     * 查询激活返现列表
     * 
     * @param actActivationReturn 激活返现
     * @return 激活返现
     */
    @Override
    public List<ActActivationReturn> selectActActivationReturnList(ActActivationReturn actActivationReturn)
    {
        return actActivationReturnMapper.selectActActivationReturnList(actActivationReturn);
    }

    /**
     * 新增激活返现
     * 
     * @param actActivationReturn 激活返现
     * @return 结果
     */
    @Override
    public int insertActActivationReturn(ActActivationReturn actActivationReturn)
    {
        return actActivationReturnMapper.insertActActivationReturn(actActivationReturn);
    }

    /**
     * 修改激活返现
     * 
     * @param actActivationReturn 激活返现
     * @return 结果
     */
    @Override
    public int updateActActivationReturn(ActActivationReturn actActivationReturn)
    {
        return actActivationReturnMapper.updateActActivationReturn(actActivationReturn);
    }

    /**
     * 删除激活返现对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActActivationReturnByIds(String ids)
    {
        return actActivationReturnMapper.deleteActActivationReturnByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除激活返现信息
     * 
     * @param id 激活返现ID
     * @return 结果
     */
    @Override
    public int deleteActActivationReturnById(Long id)
    {
        return actActivationReturnMapper.deleteActActivationReturnById(id);
    }

    @Override
    public int batchInsertActivationReturn(List<Map<String, String>> list)
    {
        return actActivationReturnMapper.batchInsertActivationReturn(list);
    }
    @Override
    public int deleteActivationReturn(Object actId)
    {
        return actActivationReturnMapper.deleteActivationReturn(actId);
    }
}
